home *** CD-ROM | disk | FTP | other *** search
- /* DeleteFolder.rexx 1.0 - Quickly deletes all messages in the current folder.
- ** Send comments and suggestions to knikulai@utu.fi
- ** Check http://www.utu.fi/~knikulai/ARexx.html for many more useful scripts */
- options results
-
- conf='yes' /* Set to yes, if you want a confimation requester! */
-
- address 'YAM'
- if upper(conf)='YES' then do
- 'GetFolderInfo name'
- 'Request "Delete all messages in folder' result'?" "_Yes, do it!|_No way!"'
- if result=0 then exit
- end
-
- name=result
- 'GetFolderInfo path'
- path=result
- if rc=0 then do
- if pos(':',path)=0 then path='YAM:'path
- path=path'/#?'
- address command 'Delete >nil:' path
- address 'YAM' 'MailUpdate'
- end
- exit
-